package com.cci.kangdao.aop;

import com.cci.kangdao.dao.model.UserT;

/**
 * @author William Du
 * @date 2019/7/16
 */
public class UserThreadLocal {

    private static final ThreadLocal<UserT> LOCAL_USER = new ThreadLocal<>();

    public static void set(UserT userT) {
        LOCAL_USER.set(userT);
    }

    public static UserT get() {
        return LOCAL_USER.get();
    }

    public static void clear() {
        LOCAL_USER.remove();
    }

}
